package com.yikes.srb.service;

import com.yikes.srb.common.result.PageResult;
import com.yikes.srb.leadingModle.form.borrowerattach.BorrowerAttachAddForm;
import com.yikes.srb.leadingModle.form.borrowerattach.BorrowerAttachEditForm;
import com.yikes.srb.leadingModle.form.borrowerattach.BorrowerAttachQuery;
import com.yikes.srb.leadingModle.vo.BorrowerAttachVO;
import com.yikes.srb.pojo.entity.BorrowerAttach;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.validation.Valid;

import java.util.List;

/**
 * <p>
 * 借款人上传资源表 服务类
 * </p>
 *
 * @author guanrong.yin
 * @since 2024-12-03
 */
public interface BorrowerAttachService extends IService<BorrowerAttach> {

    /**
     * 列表
     * @param query
     */
    PageResult<BorrowerAttachVO> listPage(BorrowerAttachQuery query);

    /**
     * 根据id查询单条信息
     *
     * @param id
     * @return
     */
    BorrowerAttachVO infoId(Long id);

    /**
     * 新增
     * @param form
     */
    void create(@Valid BorrowerAttachAddForm form);

    /**
     * 编辑
     * @param form
     */
    void edit(@Valid BorrowerAttachEditForm form);

    /**
     * 删除
     * @param id
     */
    void del(Long id);

    /**
     * 获取附件VO列表
     * @param id
     * @return
     */
    List<BorrowerAttachVO> selectBorrowerAttachVOList(Long id);
}
